package com.admin.system.modules.system.service.impl;

import com.admin.core.entity.SysMenu;
import com.admin.core.entity.SysRoleMenu;
import com.admin.core.mapper.RoleMenuMapper;
import com.admin.system.modules.system.service.RoleMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 角色菜单服务impl
 *
 * @author sq-lan
 */
@Service
public class RoleMenuServiceImpl extends ServiceImpl<RoleMenuMapper, SysRoleMenu> implements RoleMenuService {

    @Override
    public List<SysMenu> listMenuByRoleId(int id) {
        return baseMapper.listMenuByRoleId(id);
    }
}
